Skip to content

feat(model): add dummy text encoder for constraint-only generation#11

Open
Lee-Jun-Hyuk-37 wants to merge 1 commit intonv-tlabs:mainfrom
Lee-Jun-Hyuk-37:feat/dummy-text-encoder
Open

feat(model): add dummy text encoder for constraint-only generation#11
Lee-Jun-Hyuk-37 wants to merge 1 commit intonv-tlabs:mainfrom
Lee-Jun-Hyuk-37:feat/dummy-text-encoder

Conversation

@Lee-Jun-Hyuk-37
Copy link
Copy Markdown

First of all, thank you for building and open-sourcing Kimodo. It is a great project.

Summary

  • Add TEXT_ENCODER_MODE=dummy option that replaces the LLM2Vec text encoder with a zero-vector encoder
  • Enables constraint-only motion generation (keyframes, end-effectors, root paths) without text prompts

Motivation

Some use cases only need kinematic constraints to control motion generation, without any text prompts. For example, robotics pipelines or animation workflows that already have precise keyframe/end-effector targets do not benefit from text conditioning.

Currently there is no way to skip the text encoder. Even with an empty prompt, Kimodo always loads the full Llama-3-8B model (~17GB VRAM). This change adds a lightweight DummyTextEncoder that returns zero embeddings (equivalent to the unconditional case in classifier-free guidance training), so the diffusion model can run with constraints alone.

As a side benefit, this also helps users who cannot load the text encoder due to VRAM limitations (<17GB) or pending Meta Llama gated repo approval.

Usage

TEXT_ENCODER_MODE=dummy kimodo_gen "" --constraints constraints.json --output motion

Add TEXT_ENCODER_MODE=dummy option that replaces the LLM2Vec text
encoder with a zero-vector encoder, enabling constraint-only motion
generation without loading Llama-3-8B weights.

This addresses two limitations:
- Users without Meta Llama access can still use Kimodo with kinematic
  constraints (keyframes, end-effectors, root paths)
- VRAM requirement drops from ~17GB to ~1.1GB, making Kimodo usable
  on consumer GPUs (e.g. 8-12GB)

Usage: TEXT_ENCODER_MODE=dummy kimodo_gen "" --constraints path.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant